<%@page import="br.fontes.ManagerBean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="mb" class="br.fontes.ManagerBean" scope="request"/>


<table border=1 >

		<tr>
			<th> Codigo </th>
			<th> Funcionario </th>
			<th> Salario </th>
			<th> Alterar </th>
			<th> Excluir </th>		
		
		</tr>

	<c:forEach items="${mb.lista}" var="linha">

		<tr>
			<td> ${linha.id}</td>		
			<td> ${linha.nome}</td>
			<td> ${linha.salario}</td>
                        <td> <a href="Controle?cmd=buscar&id=${linha.id}"> Alterar  
                       </a> </td>		
			<td> <a href="Controle?cmd=excluir&id=${linha.id}"> <img src="/crudcomjsp/images/deletar.ico" style="border: 3px solid #fff; " border="0" height="13" width="20"> </a> </td>
		</tr>
	</c:forEach>

</table>

${msg}
<br/>
<a href="index.jsp">Voltar para Principal</a>
